import request from '@/utils/request'

// 查询积分变化历史记录列表
export function listIntegration_change_history(params) {
    return request({
        url: '/admin/api/integration_change_history/list',
        method: 'get',
        params
    })
}

// 查询积分变化历史记录详细
export function getIntegration_change_history(id) {
    return request({
        url: '/admin/api/integration_change_history/' + id,
        method: 'get'
    })
}

// 新增积分变化历史记录
export function addIntegration_change_history(data) {
    return request({
        url: '/admin/api/integration_change_history/add',
        method: 'post',
        data
    })
}

// 修改积分变化历史记录
export function updateIntegration_change_history(data) {
    return request({
        url: '/admin/api/integration_change_history/update',
        method: 'put',
        data
    })
}

// 删除积分变化历史记录
export function delIntegration_change_history(data) {
    return request({
        url: '/admin/api/integration_change_history/delete',
        method: 'delete',
        data
    })
}

// 导出积分变化历史记录
export function exportIntegration_change_history(query) {
    return request({
        url: '/admin/api/integration_change_history/export',
        method: 'get',
        params: query,
        responseType: 'blob'
    })
}
